package com.parking.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2023年11月28日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("renters_income")
public class RentersIncome implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 出租客收入id
     */
    @TableId(value = "renters_income_id", type = IdType.AUTO)
    private Integer rentersIncomeId;

    /**
     * 出租客信息id
     */
    @TableField("renters_info_id")
    private Integer rentersInfoId;

    /**
     * 收入
     */
    @TableField("income")
    private BigDecimal income;

    /**
     * 年月
     */
    @TableField("year_month_time")
    private String yearMonthTime;

    /**
     * 出租小时数
     */
    @TableField("year_month_hour")
    private Integer yearMonthHour;

    /**
     * 无参构造函数
     * */
    public RentersIncome() {
    }

    /**
     * 构造函数
     * rentersInfoId 出租客信息Id
     * yearMonthTime 年月
     * income        收入
     * yearMonthHour 出租小时数
     * */
    public RentersIncome(Integer rentersInfoId, BigDecimal income, String yearMonthTime, Integer yearMonthHour) {
        this.rentersInfoId = rentersInfoId;
        this.income = income;
        this.yearMonthTime = yearMonthTime;
        this.yearMonthHour = yearMonthHour;
    }
}
